package com.fruit.tool.util;

import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * 结果封装
 * 
 * @author jinghao.liang
 * 
 * @param 
 */
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class ResultBean {
	/* 返回主体 */
	private Object result;
	/* 操作是否成功 */
	private String status;
	/* 错误描述 */
	private String description;
	/* 错误码*/
	private String code;
	
	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(ResultStatus status) {
		this.status = status.name();
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
}
